package com.songtai.service;

import java.util.List;

import com.songtai.po.PhotoObj;
import com.songtai.util.Pager;

/**
 * @author 赵中杨
 * @email zhaozhongyang717@gmail.com
 * @date 2010 2010-4-20 下午03:57:05
 */
public interface ImageService {
	/**
	 * 添加
	 */
	public void addImage(PhotoObj product);

	/**
	 * 删除
	 * 
	 * @param caseid
	 * @return
	 */
	public int deleteImage(String pid);

	/**
	 * 获取
	 * 
	 * @param nodeid
	 * @param currentPage
	 * @param pageSize
	 * @return
	 */
	public Pager<PhotoObj> getImage(Long nodeid, int currentPage, int pageSize);

	/**
	 * 获取最新的铲品
	 * 
	 * @param pageSize
	 * @return
	 */
	public List<PhotoObj> getRecentImage(int pageSize, String type,Long nodeid);

	/**
	 * 获取产品和案例
	 * 
	 * @param currentPage
	 * @param pageSize
	 * @param type
	 * @param nideid
	 * @return
	 */
	public Pager<PhotoObj> getAllImage(int currentPage, int pageSize, String type, Long nodeid);
	
	public Pager<PhotoObj> getAllImagesGroupByBiaoqian(int currentPage,int pageSize,String type,Long nodeid);

	/**
	 * 搜索产品和案例
	 * 
	 * @param keyword
	 * @param currentPage
	 * @param pageSize
	 * @param type
	 * @return
	 */
	public Pager<PhotoObj> getAllImage(String keyword, int currentPage, int pageSize, String type);
	/**
	 * 获取产品或者案例
	 * @param pid
	 * @return
	 */
	public PhotoObj getImageById(String pid);
	/**
	 * 更新图片信息
	 * @param obj
	 * @return
	 */
	public boolean updateImage(PhotoObj obj);
	/**
	 * 获取指定节点下的图片
	 * @param nodeid
	 * @param pageSize
	 * @return
	 */
	public List<PhotoObj> getImageByNodeid(Long nodeid,int pageSize,String type);
	
	public List<PhotoObj> getGroupImages(String pid);
}
